package com.example.vv.service.impl;

import com.example.vv.domain.TxB;
import com.example.vv.service.TxBService;
import com.github.dreamroute.mybatis.pro.service.service.AbstractServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 描述：// TODO
 *
 * @author w.dehai.2024/7/19.10:40
 */
@Service
public class TxBServiceImpl extends AbstractServiceImpl<TxB, Long> implements TxBService {
    @Override
    @Transactional(propagation = Propagation.NESTED)
    public void save() {
        TxB txB = new TxB();
        txB.setName("txb");
        this.insert(txB);
        //        throw new RuntimeException();
    }
}
